"let g:dein#install_log_filename = '~/dein.log'

let s:base = expand('$CACHE/dein')

" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

" Make sure you use single quotes

" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
" Plug 'junegunn/vim-easy-align'

" Multiple Plug commands can be written in a single line using | separators
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'

" On-demand loading
" Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
" Plug 'tpope/vim-fireplace', { 'for': 'clojure' }

" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
" Plug 'fatih/vim-go', { 'tag': '*' }

" Plugin options
" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }

" Plugin outside ~/.vim/plugged with post-update hook
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }

" Unmanaged plugin (manually installed and updated)
" Plug '~/my-prototype-plugin'


Plug 'https://gitee.com/zgpio/markdown-preview.nvim', { 'do': 'cd app && yarn install'  }  " Mirror: 'iamcco/markdown-preview.nvim'

Plug 'https://gitee.com/zgpio/tabular'  " Mirror: 'godlygeek/tabular'
Plug 'https://gitee.com/zgpio/vim-fugitive'  " Mirror: 'tpope/vim-fugitive'
Plug 'https://gitee.com/zgpio/vim-gitgutter'  " Mirror: 'airblade/vim-gitgutter'
Plug 'https://gitee.com/zgpio/nvim-treesitter', {'do': ':TSUpdate'}  " Mirror: nvim-treesitter/nvim-treesitter
Plug 'https://gitee.com/zgpio/accelerated-jk'  " Mirror: 'rhysd/accelerated-jk'
Plug 'https://gitee.com/zgpio/coc.nvim', {'branch': 'release'}  " Mirror: 'neoclide/coc.nvim'
Plug 'https://gitee.com/zgpio/neoformat'  " Mirror: 'sbdchd/neoformat'
Plug 'https://gitee.com/zgpio/denite.nvim'
Plug 'https://gitee.com/zgpio/defx.nvim'
Plug 'https://gitee.com/zgpio/LeaderF', { 'do': ':LeaderfInstallCExtension' }  " Mirror: 'Yggdroot/LeaderF'

"---------- Vim lazy plugin ----------
"Plug 'https://gitee.com/zgpio/onedark.vim'  " Mirror: 'joshdick/onedark.vim'
"Plug 'icymind/NeoSolarized'
"Plug 'rakr/vim-one'
"Plug 'https://gitee.com/zgpio/gruvbox'  " Mirror: 'morhetz/gruvbox'

Plug 'https://gitee.com/zgpio/defx-git'  " Mirror: 'kristijanhusak/defx-git'
Plug 'https://gitee.com/zgpio/defx-icons'  " Mirror: 'kristijanhusak/defx-icons'

" Initialize plugin system
call plug#end()

source $root/rc/plugins/denite.vim
source $root/rc/plugins/defx.vim
source $root/rc/plugins/leaderf.vim
source $root/rc/plugins/coc.vim
source $root/rc/plugins/neoformat.vim
source $root/rc/plugins/accelerated-jk.vim
luafile $root/rc/plugins/treesitter.lua
source $root/rc/plugins/gitgutter.vim
source $root/rc/plugins/fugitive.vim
source $root/rc/plugins/tabular.vim
